package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import server.business.pojo.BloodDiscardState;
import server.business.service.BloodDiscardStateService;
import server.business.utils.results.lrz.Result;

import java.util.List;


@RestController
@RequestMapping("/BloodDiscardState")
public class BloodDiscardStateController {
    @Autowired
    BloodDiscardStateService bloodDiscardStateService;

    @GetMapping(value = "/normal/getName")
    public Result getName() {
        List<BloodDiscardState> bloodDiscardStates = bloodDiscardStateService.list();
        return Result.success(bloodDiscardStates);
    }
}
